package net.qiqb.usr.common;

import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import net.qiqb.usr.customer.infrastructure.persistence.dao.CustomDao;
import net.qiqbframework.messaging.task.CurrentMessageTask;
import net.qiqbframework.modelling.domain.Aggregate;
import net.qiqbframework.persisthanding.PersistHandler;
import org.springframework.stereotype.Component;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since
 */
@Slf4j
@Component
@AllArgsConstructor
public class CommonPersistence {


    @PersistHandler(routingAggregateName = "*")
    public void commonPersist(Aggregate<Object> newObj, Object oldObj) {
        final boolean aNew = newObj.isNew();
       // System.out.println("ALL一次保存");

    }

}